import req from "@/utils/request.js";
import base from "@/api/base.js";

const api = {
    postLogin(data) {
        return req.post(base.login, data)
    },

    postPv() {
        return req.post(base.pv)
    },
    potAdd(data) {
        return req.post(base.add, data)
    },
    //请求所有文章传参 分页
    getart(data) {
        return req.get(base.getart,data)
    }
}

export default api 